<?php

/**
 * 指挥者
 * User: huy
 * Date: 2017/3/21
 * Time: 21:09
 */
include "blueBird.class.php";

class Director{
    function construct($build){
        $build->buildHead();
        $build->buildWing();
        $build->buildFoot();
        return $build->getBird();
    }
}

$director = new Director();
$blue     = $director->construct(new BuleBird());
$blue->show();